package #(package);

import #(packageBase).model.#(className);
import #(packageBase).param.#(className)QueryParam;
import #(packageBase).vo.JsonResult;

import java.util.List;

/**
* #(comments)接口
*
* @author #(author)
* @date #(datetime)
*/
public interface #(className)Service {

    /**
    * 根据id查询#(comments)数据
    * @param Id
    * @return
    */
    #(className) queryObject(#(pk.attrType) Id);

    /**
    * 分页查询#(comments)数据
    * @param #(classname)QueryParam
    * @return
    */
    List<#(className)> queryList(#(className)QueryParam #(classname)QueryParam);

    /**
    * 保存#(comments)数据
    * @param #(classname)
    * @return
    */
    JsonResult save(#(className) #(classname));

    /**
    * 修改#(comments)数据
    * @param #(classname)
    * @return
    */
    JsonResult update(#(className) #(classname));

    /**
    * 根据#(pk.attrname)删除#(comments)数据
    * @param #(pk.attrname)
    * @return
    */
    JsonResult delete(#(pk.attrType) #(pk.attrname));

    /**
    * 根据#(pk.attrname)s批量删除#(comments)数据
    * @param #(pk.attrname)s
    * @return
    */
    JsonResult deleteBatch(#(pk.attrType)[] #(pk.attrname)s);
}
